<!DOCTYPE html>
<html>

<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8" name="viewport" content="initial-scale=1.0, user-scalable=no">
    <title>test</title>
    <link rel="shortcut icon" href="static/image/logo01.ico" />
    <script type="text/javascript" src="static/vue/vue.js"></script>
    <link rel="stylesheet" href="static/elementUI/index.css">
    <script type="text/javascript" src="static/elementUI/index.js"></script>
    <script type="text/javascript" src="static/vue/vue-router.js"></script>
</head>

<body style="height: 100%;">

    <div id="components-demo">
        <button-counter></button-counter>
    </div>
    <script>
        Vue.component('button-counter', {
            data: function () {
                return {
                    count: 0
                }
            },
            template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>'
        });
        new Vue({ el: '#components-demo' });


    </script>
</body>

</html>